package com.turing.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.turing.orm.model.domain.common.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @Description 
* @Author livin
* @Date 2022-02-22
*/
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_function_privilege")
public class FunctionPrivilege extends BaseDo<FunctionPrivilege> {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("english_name")
    private String englishName;

    @TableField("parent_privilege")
    private Integer parentPrivilege;

    @TableField("level")
    private Integer level;

    @TableField("modifiable")
    private Integer modifiable;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    private String privilegeUrl;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}

